<?php

/* @var $this yii\web\View */

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\Url;

//use app\assets\SmartWizardAsset;
//SmartWizardAsset::register($this);

?>
<div class='container' style='margin-bottom:100px;'>
  <h3>将按照以下设置进行充值，请仔细核对，如果核对无误，点击"立即充值"按钮进行充值</h3>
  <br>
  <?php
    if('1'==$model->channel){
      //商户提交待付款订单接口（商户-》首信易支付，必做接口）
      ?>

        <table class="table table-striped detail-view" id="w0">
          <tbody>
            <tr><th style="vertical-align:middle !important">充值通道</th><td>网银支付 <img src='<?=Url::toRoute('images/payease.png')?>' width='175' height='56'></td></tr>
            <tr><th>充值金额</th><td><i class="fa fa-cny"></i> <span style="color:red"><?=number_format($model->money,2)?></span></td></tr>
              </tbody>
        </table>
  <?php
    }else{
   ?>


<?php $form = ActiveForm::begin();?>
<?php
  if(isset($tip)&&$tip===true){
    if($model->hasErrors()){
?>
      <div class="alert alert-danger" role="alert">
        <?php
            foreach($model->getErrors("") as $key=>$value){
              echo $value."<br>";
            }
        ?>
      </div>
<?php
    }else{
?>
      <div class="alert alert-success" role="alert"></div>
<?php
    }
  }
?>

<!--?= $form->field($model, 'channel_name',['inputOptions'=>['class'=>'form-control','readonly'=>true]]) ?-->
<?= $form->field($model, 'channel',['template'=>'{input}'])->hiddenInput() ?>
<?= $form->field($model, 'money',['template'=>'{input}'])->hiddenInput() ?>
<!--?= $form->field($model, 'real_name',['template'=>'{input}'])->hiddenInput() ?-->
<table class="table table-striped detail-view" id="w0">
  <tbody>
    <tr><th>充值通道</th><td><?=Html::encode($model->channel_name)?></td></tr>
    <tr><th>充值金额</th><td><i class="fa fa-cny"></i> <span style='color:red'><?=Html::encode(number_format($model->money,2))?></span></td></tr>
    <?php
      /*$keys=  [
              '1'=>'网银支付',
              '2'=>'支付宝',
              '3'=>'微信支付'
            ];*/
      if('2'==$model->channel){
    ?>
        <tr><th>充值备注提示</th><td>
          充值转账时，请务必在支付宝APP的备注中填写您的用户名
        </td></tr>

    <?php
      }
     ?>
  </tbody>
</table>
<?php ActiveForm::end(); ?>
<?php
}
 ?>
</div>
